package test.hxy.mongoSchoolSimple.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import test.hxy.mongoSchoolSimple.dao.CountDao;

import java.util.List;
import java.util.Map;

/**
 * @Author: Kevin
 * @Date: 2021/6/14 20:58
 */
@Service
public class CountService {
    @Autowired
    CountDao countDao;

    public List<Map> countTeachersGroupByCampus() {
        return countDao.countTeachersGroupByCampus();
    }

//    public List<Map> countBookGroupByCampus() {
//        return countDao.countBooksGroupByCampus();
//    }
}
